<?php /* Smarty version 2.6.16, created on 2013-08-21 15:58:51
         compiled from ../templates/admin/tradesmanuser/addtradesmanuserworkphoto.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'stripslashes', '../templates/admin/tradesmanuser/addtradesmanuserworkphoto.tpl', 31, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<script src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/myaccount.js" type="text/javascript"></script>'; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

 <div class="contain">
 
      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['left_menu'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      
      <div class="right_contain">
        
         <div class="heading_box"><?php if ($_GET['photoid'] != ''): ?> Edit <?php else: ?>Upload<?php endif; ?> Work Photo <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=tradesmanuserworkphoto&id=<?php echo $_GET['id']; ?>
" class="rF" style="color:#FFF" >Back</a></div>
         <div class="whitebox">
         <!--Message Div Start-->
         <?php if ($this->_tpl_vars['msg']): ?>
         <div class="masg_div">
           <?php echo $this->_tpl_vars['msg']; ?>

         </div>
         <?php endif; ?>
         <!--Message Div End-->
         
       <form method="post" action="" <?php if ($this->_tpl_vars['userPhotoDetArray']['photo_id'] != ''): ?> name="frmMngWorkPhotoEdit" id="frmMngWorkPhotoEdit" <?php else: ?> name="frmMngWorkPhoto" id="frmMngWorkPhoto" <?php endif; ?> enctype="multipart/form-data">                
        <input type="hidden" id="photo_id" name="photo_id" value="<?php echo $this->_tpl_vars['userPhotoDetArray']['photo_id']; ?>
"  />
         <div style="min-height:250px;">
          <!--Form Contain start-->
           
           <div class="form_fieldbox">
             <dl>
              <dt>Title:</dt>
              <dd><input type="text" class="input" name="title" id="title" value="<?php if ($this->_tpl_vars['userPhotoDetArray']['title']):  echo ((is_array($_tmp=$this->_tpl_vars['userPhotoDetArray']['title'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp));  else:  echo $_POST['title'];  endif; ?>"/></dd>
              <div class="clear"></div>
             </dl>
             <?php if ($this->_tpl_vars['userPhotoDetArray']['image']): ?>
             <dl>
              <dt>Previous Photo:</dt>
              <dd><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/includes/image.php?width=150&amp;height=130&amp;image=<?php echo $this->_tpl_vars['siteroot']; ?>
/uploads/tradesmanjobs/<?php echo $this->_tpl_vars['userPhotoDetArray']['image']; ?>
" title="workphoto" alt="workphoto"/></dd>
              <div class="clear"></div>
             </dl>
             <?php endif; ?>
             <dl>
              <dt>Work Photo:</dt>
              <dd><input type="file" id="image" name="image"  />     </dd>
              <div class="clear"></div>
             </dl>
             
            </div>
            
            <!--Form Contain end--> 
          
           <!--Button here start-->
           <div>
            <span><input type="submit" class="admin_btn" value="Submit" name="adduser_btn" id="adduser_btn" /></span>
            <span><input type="button" class="admin_btn" value="Cancel" onclick="window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=tradesmanuserworkphoto&id=<?php echo $_GET['id']; ?>
&page=<?php echo $_GET['page']; ?>
';"/></span>
           </div>
            <!--Button here end-->
  
         </div>
         </form>
         
         </div>
        </div>
      
      
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
    
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>